//
//  AppDefine.h
//  RentTable
//
//  Created by mac on 2024/11/28.
//

#ifndef AppDefine_h
#define AppDefine_h


/// 尺寸
#define spDeviceWidth       [UIScreen mainScreen].bounds.size.width  //屏幕宽度
#define spDeviceHeight      [UIScreen mainScreen].bounds.size.height  //屏幕高度

#define scaleW spDeviceWidth / 375
#define scaleH spDeviceHeight / 812

///颜色相关
// RGB
#define myRGB(r, g, b)             [UIColor colorWithRed:((r) / 255.0) green:((g) / 255.0) blue:((b) / 255.0) alpha:1.0]
#define myRGBAlpha(r, g, b, a)     [UIColor colorWithRed:((r) / 255.0) green:((g) / 255.0) blue:((b) / 255.0) alpha:(a)]

// HEX
#define myRGBHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define myRGBHexAlpha(rgbValue,a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:(a)]

//账号，密码
#define UserAccount     @"UserAccount"
#define UserPassword    @"UserPassword"

#define isRTL   [CommondHandle getLanguageRTL]
#define QLWEAKSELF typeof(self) __weak weakSelf = self;

#define LogStatu  @"LogStatu"
#define WithdrawAccount @"WithdrawAccount"

#define CeshiAccount    @"13728810562"
#define CeshiMima   @"123456"

#endif /* AppDefine_h */
